package com.hanserwei.community.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OwnerVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 业主ID，主键
     */
    @Schema(description = "业主ID，主键")
    private Integer id;

    /**
     * 业主姓名
     */
    @TableField(value = "user_name")
    @Schema(description = "业主姓名")
    private String userName;

    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    private String tel;

    /**
     * 性别：男/女
     */
    @Schema(description = "性别：男/女")
    private String sex;

    /**
     * 身份证号码
     */
    @Schema(description = "身份证号码")
    private String identity;


    /**
     * 备注信息
     */
    @Schema(description = "备注信息")
    private String remarks;

    /**
     * HouseId
     */
    @JsonIgnore
    @Schema(description = "HouseId", hidden = true)
    private Integer houseId;

    /**
     * 关联HouseVO
     */
    @Schema(description = "关联HouseVO")
    private HouseVO houseVO;

}
